//
//  YYAlertView.swift
//  SinaStatuse（新浪微博）
//
//  Created by 李贤立 on 16/4/8.
//  Copyright © 2016年 李贤立. All rights reserved.
//

import UIKit

class YYAlertView: NSObject {
    class func alertToMessage(message: String,controller:UIViewController) {
        let alert = UIAlertController(title: "提示", message: message, preferredStyle: UIAlertControllerStyle.Alert)
        let cancle = UIAlertAction(title: "取消", style: UIAlertActionStyle.Cancel, handler: nil)
        let done = UIAlertAction(title: "确定", style: UIAlertActionStyle.Destructive, handler: nil)
        alert.addAction(cancle)
        alert.addAction(done)
        controller.presentViewController(alert, animated: true, completion: nil)
    }
}
